package com.ke.searchhouse.controller;

import com.ke.searchhouse.service.ISearchService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @Autowired
    private ISearchService searchService;

    @GetMapping("/test")
    public String test() {
        searchService.index(27L);
        return "success";
    }

    @GetMapping("/remove")
    public String remove() {
        searchService.remove(27L);
        return "success";
    }

}
